package jp.co.toshiba.ffsa.form.csas;

import org.seasar.struts.annotation.Arg;
import org.seasar.struts.annotation.EmailType;
import org.seasar.struts.annotation.Mask;
import org.seasar.struts.annotation.Maxlength;
import org.seasar.struts.annotation.Msg;
import org.seasar.struts.annotation.Required;

/**
 * ID入力画面フォーム
 * @author (NPC)
 */
public class Csas501Form {
    /** Eメールアドレス */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="mail_address", resource=true))
    @Maxlength(maxlength=256, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="mail_address", resource=true), arg1=@Arg(key="256", resource=false))
    @EmailType(msg=@Msg(key="errors.invalid", resource=true), arg0=@Arg(key="mail_address", resource=true))
    public String        emailAddress;
    /** FirstName */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="first_name", resource=true))
    @Maxlength(maxlength=30, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="first_name", resource=true), arg1=@Arg(key="30", resource=false))
    @Mask(mask="^[a-zA-Z0-9 -/:-@\\[-\\`\\{-\\~]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="first_name", resource=false))
    public String        firstName;
    /** LastName */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="last_name", resource=true))
    @Maxlength(maxlength=30, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="last_name", resource=true), arg1=@Arg(key="30", resource=false))
    @Mask(mask="^[a-zA-Z0-9 -/:-@\\[-\\`\\{-\\~]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="last_name", resource=false))
    public String        lastName;

    /**
     * 初期化処理
     */
    public void reset(){
/*        this.emailAddress    = "";
        this.firstName        = "";
        this.lastName = "";
*/    }
}
